package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.entity.PetShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 宠物店 mapper 层
 */
@Mapper
public interface PetShopMapper extends BaseMapper<PetShop> {

    /**
     * 分页查询宠物店
     *
     * @param pageObject MybatisPlus 分页对象
     * @param petShop 条件
     * @return 分页结果
     */
    IPage<PetShop> pageQuery(@Param("page") IPage<PetShop> pageObject, @Param("petShop") PetShop petShop);

    /**
     * 查询宠物店
     *
     * @param petShop 条件
     * @return 结果
     */
    List<PetShop> query(@Param("petShop") PetShop petShop);
}
